export interface BrandRes {
  total: number
  records: BrandModel[]
}

export interface BrandForm {
  id?: number
  tmName: string
  logoUrl: string
}

export interface BrandModel {
  id: number
  tmName: string
  logoUrl: string
  createTime: string
  updateTime: string
}

// 分类
export interface CategoryModel {
  id: number
  name: string
  attrId?: number
  createTime: string
  updateTime: string
}

// 属性
export interface AttrModel {
  id: number | string
  categoryId: number | string
  categoryLevel: number
  attrName: string
  attrValueList: AttrValueModel[]
  createTime: string
  updateTime: string
}
export interface AttrValueModel {
  id: number | string
  attrId: number | string
  valueName: string
  editMode?: boolean
}

// SPU
export interface ProductRes {
  total: number
  records: SpuModel[]
}

export interface SpuModel {
  id: number
  category3Id: number
  spuName: string
  description: string
  spuImageList: string
  spuPosterList: []
  spuSaleAttrList: []
  tmId: number
  createTime: string
  updateTime: string
}
